package cn.jy.boot.mapper;

import cn.jy.boot.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
* @author Ag
* @description 针对表【t_user】的数据库操作Mapper
* @createDate 2022-04-21 21:52:24
* @Entity cn.jy.boot.pojo.User
*/
@Repository
public interface UserMapper extends BaseMapper<User> {

//    @Select("SELECT = from t_user where uid=#{id}")
//    User getUserById(Integer id);
//
    @Update("UPDATE t_user SET user_name = #{userName},age = #{age},email = #{email} WHERE uid = #{uid}")
    int updateUser(User user);

//    @Delete("DELETE FROM t_user WHERE uid = #{id}")
//    public void deleteUserById(Integer id);
}




